package com.qst.crop.demo.mapper;

import com.qst.crop.demo.entity.Product;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductMapper {

    int add(Product product);

    List<Product> select(String searchWord);

    List<Product> selectAll();

    int delete(Product product);

    int update(Product product);

    Product getProById(Long productId);
}
